﻿using NineMine.Core;
using NineMine.DataModel;
using NineMine.DataModel.Initialization;
using NineMine.TestHarness.Properties;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NineMine.TestHarness
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Starting...");

            var mimetype = MimeType.MimeTypeOf("someFile.funk.txt");
            if (mimetype != null)
                Console.WriteLine(mimetype);

            using (var context = new NineMineDataContext(Settings.Default.DataSource))
            {
                Database.SetInitializer(new DatabaseCreator());

                var query = from e in context.Enumerations select e;

                foreach (var item in query)
                {
                    Console.WriteLine(item.Name);
                }
            }
            Console.WriteLine("Press any key to exit...");
            Console.ReadKey();
        }
    }
}
